#ifndef _TIMELIST_H_
#define _TIMELIST_H_

#include "sys.h"
typedef struct  _time
{
	void        *next;//指向后一个
	uint8_t     handle;//自己的ID号
	uint8_t     start;//开关1开0关
	uint32_t    cnt;//累计次数的变量
	uint32_t    time_out;//设定次数的常量
	void        (*fun)(void);//计数达到以后做啥的函数
}time_type;



typedef void    (*time_call_back)(void);
typedef struct
{
    uint8_t (*creat) (  uint32_t time_out ,uint8_t start, time_call_back call_back);
    uint8_t (*stop)  (  uint8_t handle);
    uint8_t (*start) (  uint8_t handle);
}time_ops_type;

extern time_ops_type   timer;


void timer_isr( void );

#endif

